package com.truthbean.jeetb.index.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * Created by TruthBean on 2016-10-10 18:21.
 */
@Path("/index.html")
public class IndexResources {

    @GET
    @Produces("text/html")
    public String index(){
        return "<html>" +
                    "<head>" +
                        "<title>index</title>" +
                    "</head>" +
                    "<body><center><h1>this is index page</h1><center></body>" +
                "</html>";
    }
}
